package com.zxb.core.dao.auth;

import com.zxb.core.common.validation.Idcard;
import com.zxb.core.common.validation.Mobile;
import com.zxb.core.dao.BaseEntity;
import lombok.Data;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.sql.Timestamp;

/**
 * @author Zxb
 */
@Data
public class AuthUser extends BaseEntity {
    private String head;
    @NotBlank
    private String username;
    private String password;
    @NotBlank
    private String name;
    private String namePy;
    private String sex;
    @NotBlank
    @Mobile
    private String phone;
    @Idcard
    private String idCard;
    @Email
    private String email;
    private String birth;
    private String intro;
    private Boolean isOpen;
    private Boolean isTest;
    private Timestamp lastLoginTime;
    private String eduLevel;
    private String tags;
    private String gesture;
}
